    //发送ajax请求
    $.ajax({
            method: "get",
            url: "http://192.168.50.142:81/goodslist",
            success: function(data) {
                let dataList = JSON.parse(data);
                // console.log(data);
                let template = $("#goodsNumbs-boderone");
                dataList.forEach((item) => {
                    let newitem = template.clone(true);
                    newitem.attr("id", "");
                    newitem.find(".imgtwo").attr("src", item.goodimg);
                    newitem.find(".imgthree").attr("src", item.bgimg);
                    newitem.find(".imgfore").html(item.money);
                    newitem.find(".lione").html(item.newmoney);
                    newitem.find(".litwo").html(item.oldmoney);
                    newitem.find(".spanone a").html(item.text);
                    newitem.find(".onep").html(item.newtext);
                    newitem.find(".spanthree").html(item.xiaoliang);
                    newitem.find(".twoa").attr("href", `http://192.168.50.142/MIDO/bigimg.html?id=${item.id}`)
                        //newitem.appendTo($("#goodsNumbs-boder"))
                    $(".use").before(newitem)
                })
            }


        })
        //判断用户是否的登录===========================================================
        //跳转个人
    $(".nolookone").click(function() {
            //获取到页面保存的值
            let phooo = sessionStorage.getItem("stuname");
            console.log(phooo);
            if (phooo == null) {
                alert("请登录");
                location.href = "http://192.168.50.142/MIDO/denglu.html";
                return;
            };
            //判断是否穿在
            location.href = "http://192.168.50.142/MIDO/gerenxinxi.html";
        })
        //跳转购物车
    $(".nolooktwo").click(function() {
            //获取到页面保存的值
            let phooo = sessionStorage.getItem("stuname");
            console.log(phooo);
            if (phooo == null) {
                alert("请登录");
                location.href = "http://192.168.50.142/MIDO/denglu.html";
                return;
            };
            //判断是否穿在
            location.href = "http://192.168.50.142/MIDO/gouwuche.html";
        })
        //========================
        //判断是否登录
        //获取到页面保存的值
    function qqj() {
        let phooo = sessionStorage.getItem("stuname");
        if (phooo !== null) {
            $
            let yesname = $(".yesdenglu").html();
            yesname = "已登录";
            $(".yesdenglu").html(yesname);
            console.log(yesname);
        } else {
            let yesname = $(".yesdenglu").html();
            yesname = "请登录";
            $(".yesdenglu").html(yesname);
            console.log(yesname);
        }
    }
    qqj();